/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.zx.user.agreement.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 用户协议条款Entity
 * @author zpp
 * @version 2020-02-27
 */
@Table(name="t_user_agreement", alias="a", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="text", attrName="text", label="条款内容"),
	}, orderBy="a.id DESC"
)
public class TuserAgreement extends DataEntity<TuserAgreement> {
	
	private static final long serialVersionUID = 1L;
	private String text;		// 条款内容
	
	public TuserAgreement() {
		this(null);
	}

	public TuserAgreement(String id){
		super(id);
	}
	
	@Length(min=0, max=500, message="条款内容长度不能超过 500 个字符")
	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
	
}